import {get, post, put} from "@/utils/request"

export function getUser(data) {
    return get('/user/user/list', data)
}

export function login(data) {
    return post('/user/user/login', data)
}

export function updateUser(data){
    return put('/user/user/edit', data)
}

export function updateStatus(data){
    return get('/user/user/status', data)
}

export function getInfo(id) {
    return get('/user/user/'+id, {})
}

export function deleteUser(id) {
    return get('/user/user/del/'+id, {})
}

export function addUser(data) {
    return post('/user/user', data)
}
